home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / textfile / faqs / unix_faq / faq / contents next >
Encoding:
Internet Message Format  |  1992-12-27  |  7.8 KB

  1. Xref: bloom-picayune.mit.edu comp.unix.questions:51329 comp.unix.shell:8335 news.answers:4770
  2. Path: bloom-picayune.mit.edu!senator-bedfellow.mit.edu!senator-bedfellow.mit.edu!usenet
  3. From: tmatimar@empress.com (Ted M A Timar)
  4. Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  5. Subject: Unix - Frequently Asked Questions (Contents) [Frequent posting]
  6. Supersedes: <unix-faq/faq/contents_723967331@athena.mit.edu>
  7. Followup-To: comp.unix.questions
  8. Date: 24 Dec 1992 06:02:42 GMT
  9. Organization: Empress Software
  10. Lines: 144
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 21 Jan 1993 06:02:09 GMT
  14. Message-ID: <unix-faq/faq/contents_725176929@athena.mit.edu>
  15. NNTP-Posting-Host: pit-manager.mit.edu
  16. X-Last-Updated: 1992/12/09
  17.  
  18. Archive-name: unix-faq/faq/contents
  19. Version: $Id: contents,v 2.1 92/12/04 07:43:28 tmatimar Exp $
  20.  
  21. The following seven articles contain the answers to some Frequently Asked
  22. Questions often seen in comp.unix.questions and comp.unix.shell.
  23. Please don't ask these questions again, they've been answered plenty
  24. of times already - and please don't flame someone just because they may
  25. not have read this particular posting.  Thank you.
  26.  
  27. These articles are divided approximately as follows:
  28.  
  29.       1.*) General questions.
  30.       2.*) Relatively basic questions, likely to be asked by beginners.
  31.       3.*) Intermediate questions.
  32.       4.*) Advanced questions, likely to be asked by people who thought
  33.        they already knew all of the answers.
  34.       5.*) Questions pertaining to the various shells, and the differences.
  35.       6.*) An overview of Unix variants.
  36.       7.*) An comparison of configuration management systems (RCS, SCCS).
  37.  
  38. The following questions are answered:
  39.  
  40.       1.1)  Who helped you put this list together?
  41.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  42.               the number in parentheses mean?
  43.       1.3)  What does {some strange unix command name} stand for?
  44.       1.4)  How does the gateway between "comp.unix.questions" and the
  45.               "info-unix" mailing list work?
  46.       1.5)  What are some useful Unix or C books?
  47.       1.6)  What happened to the pronunciation list that used to be
  48.               part of this document?
  49.  
  50.       2.1)  How do I remove a file whose name begins with a "-" ?
  51.       2.2)  How do I remove a file with funny characters in the filename ?
  52.       2.3)  How do I get a recursive directory listing?
  53.       2.4)  How do I get the current directory into my prompt?
  54.       2.5)  How do I read characters from the terminal in a shell script?
  55.       2.6)  How do I rename "*.foo" to "*.bar", or change file names
  56.               to lowercase?
  57.       2.7)  Why do I get [some strange error message] when I
  58.               "rsh host command" ?
  59.       2.8)  How do I {set an environment variable, change directory} inside a
  60.               program or shell script and have that change affect my
  61.               current shell?
  62.       2.9)  How do I redirect stdout and stderr separately in csh?
  63.       2.10) How do I tell inside .cshrc if I'm a login shell?
  64.       2.11) How do I construct a shell glob-pattern that matches all files
  65.             except "." and ".." ?
  66.       2.12) How do I find the last argument in a Bourne shell script?
  67.       2.13) What's wrong with having '.' in your $PATH ?
  68.  
  69.       3.1)  How do I find out the creation time of a file?
  70.       3.2)  How do I use "rsh" without having the rsh hang around
  71.               until the remote command has completed?
  72.       3.3)  How do I truncate a file?
  73.       3.4)  Why doesn't find's "{}" symbol do what I want?
  74.       3.5)  How do I set the permissions on a symbolic link?
  75.       3.6)  How do I "undelete" a file?
  76.       3.7)  How can a process detect if it's running in the background?
  77.       3.8)  Why doesn't redirecting a loop work as intended?  (Bourne shell)
  78.       3.9)  How do I run 'passwd', 'ftp', 'telnet', 'tip' and other interactive
  79.               programs from a shell script or in the background?
  80.       3.10) How do I find out the process ID of a program with a particular
  81.             name from inside a shell script or C program?
  82.       3.11) How do I check the exit status of a remote command
  83.             executed via "rsh" ?
  84.       3.12) Is it possible to pass shell variable settings into an awk program?
  85.       3.13) How do I get rid of zombie processes that persevere?
  86.       3.14) How do I get lines from a pipe as they are written instead of
  87.             only in larger blocks.
  88.  
  89.       4.1)  How do I read characters from a terminal without requiring the user
  90.               to hit RETURN?
  91.       4.2)  How do I check to see if there are characters to be read without
  92.               actually reading?
  93.       4.3)  How do I find the name of an open file?
  94.       4.4)  How can an executing program determine its own pathname?
  95.       4.5)  How do I use popen() to open a process for reading AND writing?
  96.       4.6)  How do I sleep() in a C program for less than one second?
  97.       4.7)  How can I get setuid shell scripts to work?
  98.       4.8)  How can I find out which user or process has a file open or is using
  99.             a particular file system (so that I can unmount it?)
  100.       4.9)  How do I keep track of people who are fingering me?
  101.       4.10) Is it possible to reconnect a process to a terminal after it has
  102.             been disconnected, e.g. after starting a program in the background
  103.             and logging out?
  104.       4.11) Is it possible to "spy" on a terminal, displaying the output
  105.             that's appearing on it on another terminal?
  106.  
  107.       5.1)  Can shells be classified into categories?
  108.       5.2)  How do I "include" one shell script from within another
  109.             shell script?
  110.       5.3)  Do all shells have aliases?  Is there something else that
  111.             can be used?
  112.       5.4)  How are shell variables assigned?
  113.       5.5)  How can I tell if I am running an interactive shell?
  114.       5.6)  What "dot" files do the various shells use?
  115.       5.7)  I would like to know more about the differences between the
  116.             various shells.  Is this information available some place?
  117.  
  118.       6.1)  Disclaimer and introduction.
  119.       6.2)  A very brief look at Unix history.
  120.       6.3)  Main Unix flavors.
  121.       6.4)  Unix Standards.
  122.       6.5)  Identifying your Unix flavor.
  123.       6.6)  Brief notes on some well-known (commercial/PD) Unices.
  124.       6.7)  Real-time Unices.
  125.       6.8)  Unix glossary.
  126.       6.9)  Acknowledgements.
  127.  
  128.       7.1)  RCS vs SCCS:  Introduction
  129.       7.2)  RCS vs SCCS:  How do the interfaces compare?
  130.       7.3)  RCS vs SCCS:  What's in a Revision File?
  131.       7.4)  RCS vs SCCS:  What are the keywords?
  132.       7.5)  What's an RCS symbolic name?
  133.       7.6)  RCS vs SCCS:  How do they compare for performance?
  134.       7.7)  RCS vs SCCS:  Version Identification.
  135.       7.8)  RCS vs SCCS:  How do they handle with problems?
  136.       7.9)  RCS vs SCCS:  Conversion.
  137.       7.10) RCS vs SCCS:  Support
  138.       7.11) RCS vs SCCS:  Command Comparison
  139.       7.12) RCS vs SCCS:  Acknowledgements
  140.       7.13) Can I get more information on configuration management systems?
  141.  
  142.       If you're looking for the answer to, say, question 2.5, look in
  143.       part 2 and search for the regular expression "^2.5)".
  144.  
  145. While these are all legitimate questions, they seem to crop up in
  146. comp.unix.questions or comp.unix.shell on an annual basis, usually
  147. followed by plenty of replies (only some of which are correct) and then
  148. a period of griping about how the same questions keep coming up.  You
  149. may also like to read the monthly article "Answers to Frequently Asked
  150. Questions" in the newsgroup "news.announce.newusers", which will tell
  151. you what "UNIX" stands for.
  152.  
  153. With the variety of Unix systems in the world, it's hard to guarantee
  154. that these answers will work everywhere.  Read your local manual pages
  155. before trying anything suggested here.  If you have suggestions or
  156. corrections for any of these answers, please send them to to
  157. tmatimar@empress.com.
  158.  
  159. -- 
  160. Ted Timar - tmatimar@empress.com
  161. Empress Software, 3100 Steeles Ave E, Markham, Ont., Canada L3R 8T3
  162.